setTranslationX

open fun setTranslationX(view: View, value: Float)(source)

Deprecated

Use setTranslationX directly.

Sets the horizontal location of this view relative to its left position. This effectively positions the object post-layout, in addition to wherever the object's layout placed it.

Parameters

view

view for which to set the translation.

value

The horizontal position of this view relative to its left position, in pixels.